package j06date;

import java.util.Calendar;

public class J3rili {
    public static void main(String[] args) {
        Calendar c = Calendar.getInstance();

        c.set(Calendar.YEAR,2025);

        System.out.println("c.get(Calendar.YEAR) = " + c.get(Calendar.YEAR));
        System.out.println("c.get(Calendar.HOUR) = " + c.get(Calendar.HOUR));
        System.out.println("====");
        System.out.println(System.currentTimeMillis());
        long old = System.currentTimeMillis();
        int num = 0;
        for (int i = 0; i < 10000000; i++) {
            num++;
            num++;
            num++;
            num++;
            num++;
            num++;
        }
        //退出
        System.exit(100);
        System.out.println("时间差为："+(System.currentTimeMillis()-old));
    }
}
